import Vue from 'vue'
//自定义过滤器
const datefmt = Vue.filter('datefmt',function(input,splicchar){
	var date = new Date(input); 
	var year = date.getFullYear();
	var m = date.getMonth() + 1;
	var d = date.getDate();        	
	var fmtStr = year+splicchar+m +splicchar+d;
	return fmtStr; //返回输出结果
});    

export {datefmt}